Optimal. Leaf size=420 \[ \frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}+\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}+\frac {f \text {PolyLog}\left (2,-e^{c+d x}\right )}{2 a d^2}-\frac {b^2 f \text {PolyLog}\left (2,-e^{c+d x}\right )}{a^3 d^2}-\frac {f \text {PolyLog}\left (2,e^{c+d x}\right )}{2 a d^2}+\frac {b^2 f \text {PolyLog}\left (2,e^{c+d x}\right )}{a^3 d^2}-\frac {b^3 f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d^2}+\frac {b^3 f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.52, antiderivative size = 420, normalized size of antiderivative = 1.00, number of steps
used = 24, number of rules used = 10, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {5694, 4270,
4267, 2317, 2438, 4269, 3556, 3403, 2296, 2221} \begin {gather*} -\frac {b^2 f \text {Li}_2\left (-e^{c+d x}\right )}{a^3 d^2}+\frac {b^2 f \text {Li}_2\left (e^{c+d x}\right )}{a^3 d^2}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {b^3 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 d^2 \sqrt {a^2+b^2}}+\frac {b^3 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 d^2 \sqrt {a^2+b^2}}-\frac {b^3 (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{a^3 d \sqrt {a^2+b^2}}+\frac {b^3 (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{a^3 d \sqrt {a^2+b^2}}+\frac {f \text {Li}_2\left (-e^{c+d x}\right )}{2 a d^2}-\frac {f \text {Li}_2\left (e^{c+d x}\right )}{2 a d^2}-\frac {f \text {csch}(c+d x)}{2 a d^2}+\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2296
Rule 2317
Rule 2438
Rule 3403
Rule 3556
Rule 4267
Rule 4269
Rule 4270
Rule 5694
Rubi steps
\begin {align*} \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\int (e+f x) \text {csch}^3(c+d x) \, dx}{a}-\frac {b \int \frac {(e+f x) \text {csch}^2(c+d x)}{a+b \sinh (c+d x)} \, dx}{a}\\ &=-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {\int (e+f x) \text {csch}(c+d x) \, dx}{2 a}-\frac {b \int (e+f x) \text {csch}^2(c+d x) \, dx}{a^2}+\frac {b^2 \int \frac {(e+f x) \text {csch}(c+d x)}{a+b \sinh (c+d x)} \, dx}{a^2}\\ &=\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}+\frac {b^2 \int (e+f x) \text {csch}(c+d x) \, dx}{a^3}-\frac {b^3 \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{a^3}+\frac {f \int \log \left (1-e^{c+d x}\right ) \, dx}{2 a d}-\frac {f \int \log \left (1+e^{c+d x}\right ) \, dx}{2 a d}-\frac {(b f) \int \coth (c+d x) \, dx}{a^2 d}\\ &=\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}-\frac {\left (2 b^3\right ) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{a^3}+\frac {f \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x}\right )}{2 a d^2}-\frac {f \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x}\right )}{2 a d^2}-\frac {\left (b^2 f\right ) \int \log \left (1-e^{c+d x}\right ) \, dx}{a^3 d}+\frac {\left (b^2 f\right ) \int \log \left (1+e^{c+d x}\right ) \, dx}{a^3 d}\\ &=\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}+\frac {f \text {Li}_2\left (-e^{c+d x}\right )}{2 a d^2}-\frac {f \text {Li}_2\left (e^{c+d x}\right )}{2 a d^2}-\frac {\left (2 b^4\right ) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{a^3 \sqrt {a^2+b^2}}+\frac {\left (2 b^4\right ) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{a^3 \sqrt {a^2+b^2}}-\frac {\left (b^2 f\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x}\right )}{a^3 d^2}+\frac {\left (b^2 f\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x}\right )}{a^3 d^2}\\ &=\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}+\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}+\frac {f \text {Li}_2\left (-e^{c+d x}\right )}{2 a d^2}-\frac {b^2 f \text {Li}_2\left (-e^{c+d x}\right )}{a^3 d^2}-\frac {f \text {Li}_2\left (e^{c+d x}\right )}{2 a d^2}+\frac {b^2 f \text {Li}_2\left (e^{c+d x}\right )}{a^3 d^2}+\frac {\left (b^3 f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{a^3 \sqrt {a^2+b^2} d}-\frac {\left (b^3 f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{a^3 \sqrt {a^2+b^2} d}\\ &=\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}+\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}+\frac {f \text {Li}_2\left (-e^{c+d x}\right )}{2 a d^2}-\frac {b^2 f \text {Li}_2\left (-e^{c+d x}\right )}{a^3 d^2}-\frac {f \text {Li}_2\left (e^{c+d x}\right )}{2 a d^2}+\frac {b^2 f \text {Li}_2\left (e^{c+d x}\right )}{a^3 d^2}+\frac {\left (b^3 f\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a^3 \sqrt {a^2+b^2} d^2}-\frac {\left (b^3 f\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a^3 \sqrt {a^2+b^2} d^2}\\ &=\frac {(e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac {2 b^2 (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^3 d}+\frac {b (e+f x) \coth (c+d x)}{a^2 d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}+\frac {b^3 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}+\frac {f \text {Li}_2\left (-e^{c+d x}\right )}{2 a d^2}-\frac {b^2 f \text {Li}_2\left (-e^{c+d x}\right )}{a^3 d^2}-\frac {f \text {Li}_2\left (e^{c+d x}\right )}{2 a d^2}+\frac {b^2 f \text {Li}_2\left (e^{c+d x}\right )}{a^3 d^2}-\frac {b^3 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d^2}+\frac {b^3 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2} d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 7.13, size = 736, normalized size = 1.75 \begin {gather*} \frac {\left (2 b d e \cosh \left (\frac {1}{2} (c+d x)\right )-a f \cosh \left (\frac {1}{2} (c+d x)\right )-2 b c f \cosh \left (\frac {1}{2} (c+d x)\right )+2 b f (c+d x) \cosh \left (\frac {1}{2} (c+d x)\right )\right ) \text {csch}\left (\frac {1}{2} (c+d x)\right )}{4 a^2 d^2}+\frac {(-d e+c f-f (c+d x)) \text {csch}^2\left (\frac {1}{2} (c+d x)\right )}{8 a d^2}-\frac {b f \log (\sinh (c+d x))}{a^2 d^2}-\frac {e \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{2 a d}+\frac {b^2 e \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{a^3 d}+\frac {c f \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{2 a d^2}-\frac {b^2 c f \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{a^3 d^2}+\frac {i f \left (i (c+d x) \left (\log \left (1-e^{-c-d x}\right )-\log \left (1+e^{-c-d x}\right )\right )+i \left (\text {PolyLog}\left (2,-e^{-c-d x}\right )-\text {PolyLog}\left (2,e^{-c-d x}\right )\right )\right )}{2 a d^2}-\frac {i b^2 f \left (i (c+d x) \left (\log \left (1-e^{-c-d x}\right )-\log \left (1+e^{-c-d x}\right )\right )+i \left (\text {PolyLog}\left (2,-e^{-c-d x}\right )-\text {PolyLog}\left (2,e^{-c-d x}\right )\right )\right )}{a^3 d^2}+\frac {b^3 \left (2 d e \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )-2 c f \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )-f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )+f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )-f \text {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )+f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )}{a^3 \sqrt {a^2+b^2} d^2}+\frac {(-d e+c f-f (c+d x)) \text {sech}^2\left (\frac {1}{2} (c+d x)\right )}{8 a d^2}+\frac {\text {sech}\left (\frac {1}{2} (c+d x)\right ) \left (2 b d e \sinh \left (\frac {1}{2} (c+d x)\right )+a f \sinh \left (\frac {1}{2} (c+d x)\right )-2 b c f \sinh \left (\frac {1}{2} (c+d x)\right )+2 b f (c+d x) \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{4 a^2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(860\) vs.
\(2(386)=772\).
time = 1.74, size = 861, normalized size = 2.05
method | result | size |
risch | \(-\frac {a d f x \,{\mathrm e}^{3 d x +3 c}+a d e \,{\mathrm e}^{3 d x +3 c}-2 b d f x \,{\mathrm e}^{2 d x +2 c}+a d f x \,{\mathrm e}^{d x +c}+a f \,{\mathrm e}^{3 d x +3 c}-2 b d e \,{\mathrm e}^{2 d x +2 c}+a d e \,{\mathrm e}^{d x +c}+2 b d f x -a f \,{\mathrm e}^{d x +c}+2 b e d}{d^{2} a^{2} \left ({\mathrm e}^{2 d x +2 c}-1\right )^{2}}+\frac {f \ln \left ({\mathrm e}^{d x +c}+1\right ) x}{2 d a}-\frac {e \ln \left ({\mathrm e}^{d x +c}-1\right )}{2 a d}+\frac {f c \ln \left ({\mathrm e}^{d x +c}-1\right )}{2 d^{2} a}-\frac {2 b^{3} f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} a^{3} \sqrt {a^{2}+b^{2}}}+\frac {2 b^{3} e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d \,a^{3} \sqrt {a^{2}+b^{2}}}-\frac {b^{3} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} a^{3} \sqrt {a^{2}+b^{2}}}+\frac {b^{3} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} a^{3} \sqrt {a^{2}+b^{2}}}-\frac {b^{2} f \ln \left ({\mathrm e}^{d x +c}+1\right ) x}{d \,a^{3}}-\frac {b^{3} f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} a^{3} \sqrt {a^{2}+b^{2}}}+\frac {b^{3} f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} a^{3} \sqrt {a^{2}+b^{2}}}-\frac {b^{2} e \ln \left ({\mathrm e}^{d x +c}+1\right )}{d \,a^{3}}+\frac {b^{2} e \ln \left ({\mathrm e}^{d x +c}-1\right )}{d \,a^{3}}-\frac {b^{2} f c \ln \left ({\mathrm e}^{d x +c}-1\right )}{d^{2} a^{3}}-\frac {b^{2} f \dilog \left ({\mathrm e}^{d x +c}+1\right )}{d^{2} a^{3}}-\frac {b^{2} f \dilog \left ({\mathrm e}^{d x +c}\right )}{d^{2} a^{3}}+\frac {e \ln \left ({\mathrm e}^{d x +c}+1\right )}{2 a d}-\frac {b f \ln \left ({\mathrm e}^{d x +c}+1\right )}{d^{2} a^{2}}-\frac {b f \ln \left ({\mathrm e}^{d x +c}-1\right )}{d^{2} a^{2}}+\frac {2 b f \ln \left ({\mathrm e}^{d x +c}\right )}{d^{2} a^{2}}+\frac {f \dilog \left ({\mathrm e}^{d x +c}+1\right )}{2 d^{2} a}+\frac {f \dilog \left ({\mathrm e}^{d x +c}\right )}{2 d^{2} a}-\frac {b^{3} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \,a^{3} \sqrt {a^{2}+b^{2}}}+\frac {b^{3} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \,a^{3} \sqrt {a^{2}+b^{2}}}\) | \(861\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 5442 vs.
\(2 (386) = 772\).
time = 0.42, size = 5442, normalized size = 12.96 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e + f x\right ) \operatorname {csch}^{3}{\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {e+f\,x}{{\mathrm {sinh}\left (c+d\,x\right )}^3\,\left (a+b\,\mathrm {sinh}\left (c+d\,x\right )\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________